package com.pets.dao;


import com.pets.entity.Phonecode;
import org.apache.ibatis.annotations.Param;

public interface PhonecodeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Phonecode record);

    int insertSelective(Phonecode record);

    Phonecode selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Phonecode record);

    int updateByPrimaryKey(Phonecode record);
    //根据phone和code删除PhoneCode
    boolean deletePhoneCodeByPhone(@Param("phone") String phone , @Param("code") String code);

    //根据phone和code查询PhoneCode
    Phonecode selectPhoneCodeByPhoneAndCode(@Param("phone") String phone, @Param("code") String code);

}